package camadaSO; 

public class MainCliente {

	public static void main(String[] args) {			
			camadaIU.IULogin.getIULogin();
			camadaRN.RNEliteSquadCliente.getRNCliente().iniciarClienteRMI();
			
			final javax.swing.JFrame telaConexao = new javax.swing.JFrame("Elite Squad");
			telaConexao.setSize(300,100);
			telaConexao.setLayout(null);
			telaConexao.setVisible(true);
			telaConexao.setLocation(200,100);
			final javax.swing.JTextField ip = new javax.swing.JTextField(
			"Digite aqui o ip (ou o nome) do servidor");
			ip.setBounds(5,10,250,20);
			telaConexao.add(ip);
			javax.swing.JButton ok = new javax.swing.JButton(
			"Ok");
			ok.setBounds(30,40,100,20);
			telaConexao.add(ok);
			ok.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					if(camadaRN.RNEliteSquadCliente.conectarServidor(
							ip.getText())){
						telaConexao.dispose();
					}
				}
			});	
	}
}
